<?php

namespace App\Traits;

trait HashId
{
    public function getHashIdAttribute($value)
    {
        return $this->attributes['id'] = hash_encode($value);
    }
}